package com.atguigu.spring5;

/**
 * 使用有参构造注入
 */
public class Orders {

    private String oname;
    private String address;

//    public Orders() {
//
//    }

    public Orders(String oname, String address) {
        this.oname = oname;
        this.address = address;
    }


    public void ordersTest() {
//        System.out.println(this);
//        System.out.println(new Orders());
        System.out.println(oname + "::" + address);
    }

}
